package DARCOShared.responses;



public class GetCardInfoResponse implements ResponseBase, java.io.Serializable {
	private static final long serialVersionUID = 1L;
	
	public boolean hasOwner;
	
	public String cardSN;
	public String cardID;
	public String cardName;
	public String cardStats;
	public String cardSpecial;
	public int cardCategory;
	public int cardSubCategory;
	public byte[] cardImage;
	public byte[] cardPreview;
	public String categoryName;
	public int categoryID;
	public int categoryAllowSub;
	public String subCategoryName;
	public int subCategoryID;
	public int subCategoryAllowSub;
	public String owner;
	public byte[] ownerPubKey;
	public String firstOwner;
	public String firstAuth;
	public int authenticated;
	
	
	public GetCardInfoResponse(){}
	public GetCardInfoResponse(String cardSN, String cardID, String cardName, String cardStats, String cardSpecial, int cardCategory, int cardSubCategory, byte[] cardImage, byte[] cardPreview, String categoryName, int categoryID, int categoryAllowSub, String subCategoryName, int subCategoryID, int subCategoryAllowSub, String owner, byte[] ownerPubKey, String firstOwner, String firstAuth, int authenticated){
		this.cardSN = cardSN;
		this.cardID = cardID;
		this.cardName = cardName;
		this.cardStats = cardStats;
		this.cardSpecial = cardSpecial;
		this.cardCategory = cardCategory;
		this.cardSubCategory = cardSubCategory;
		this.cardImage = cardImage;
		this.cardPreview = cardPreview;
		this.categoryName = categoryName;
		this.categoryID = categoryID;
		this.categoryAllowSub = categoryAllowSub;
		this.subCategoryName = subCategoryName;
		this.subCategoryID = subCategoryID;
		this.subCategoryAllowSub = subCategoryAllowSub;
		this.owner = owner;
		this.ownerPubKey = ownerPubKey;
		this.firstOwner = firstOwner;
		this.firstAuth = firstAuth;
		this.authenticated = authenticated;
		
		hasOwner = owner != null && ownerPubKey != null;
	}

	@Override
	public ResponseType getResponseType() {
		return ResponseType.GetCardInfo;
	}

}
